<template>
	<view>
		<view class="navigation-bar">
			<view @click="turnBack">
				<image src="/static/左箭头.png"></image>
			</view><text>优惠券</text>
		</view>
		<view class="background"></view>
		<view class="body">
			<view class="img0">
				<image class="img" src="/static/椭圆 3 拷贝.png" mode="">
					<view class="card">
						<view class="condition">
							<view>仅限于**加油站使用</view>
							<view>满200元可用</view>
						</view>
						<view class="money">
							￥<text>20</text>
						</view>
					</view>
					<view class="card2">
						<view class="tiem">
							有效期至：2020.04.11——2025.06.23
						</view>
						<view class="arrow" @click="confirm">
							<text>去使用</text>
						</view>
					</view>
					<view @click="confirm"><image class="img2" src="/static/右箭头.png"></image></view>
				</image>
			</view>
			<view class="img0">
				<image class="img" src="/static/椭圆 3 拷贝.png" mode="">
					<view class="card">
						<view class="condition">
							<view>仅限于**加油站使用</view>
							<view>满200元可用</view>
						</view>
						<view class="money">
							￥<text>20</text>
						</view>
					</view>
					<view class="card2">
						<view class="tiem">
							有效期至：2020.04.11——2025.06.23
						</view>
						<view class="arrow" @click="confirm">
							<text>去使用</text>
						</view>
					</view>
					<view @click="confirm"><image class="img2" src="/static/右箭头.png"></image></view>
				</image>
			</view>
			<view class="img0">
				<image class="img" src="/static/椭圆 3 拷贝.png" mode="">
					<view class="card">
						<view class="condition">
							<view>仅限于**加油站使用</view>
							<view>满200元可用</view>
						</view>
						<view class="money">
							￥<text>20</text>
						</view>
					</view>
					<view class="card2">
						<view class="tiem">
							有效期至：2020.04.11——2025.06.23
						</view>
						<view class="arrow" @click="confirm">
							<text>去使用</text>
						</view>
					</view>
					<view @click="confirm"><image class="img2" src="/static/右箭头.png"></image></view>
				</image>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {

			}
		},
		methods: {
			turnBack() {
				uni.navigateBack({
					url: "/pages/index/index"
				})
			},
			confirm(){
				uni.navigateTo({
					url:"/packageMaintenance/pages/confirmOrder/confirmOrder"
				})
			}
		}
	}
</script>

<style>
	.navigation-bar {
		position: relative;
		height: 150rpx;
		display: flex;
		align-items: center;
		background-color: #287BF6;
	}

	.navigation-bar>view>image {
		width: 30rpx;
		height: 30rpx;
		margin-left: 30rpx;
	}
	
	.navigation-bar>text {
		color: #FFF;
		margin-right: 40rpx;
		flex-grow: 1;
		text-align: center;
	}
	.background {
		position: absolute;
		background-color: #287BF6;
		width: 100%;
		height: 300rpx;
		z-index: 0;
	}

	.body {
		position: relative;
		margin: 50rpx 20rpx;
		border-radius: 20px;
		background-color: #FFF;
	}

	.img0 {
		position: relative;
	}

	.img {
		width: 650rpx;
		height: 280rpx;
		margin: 30rpx;
	}

	.card {
		display: flex;
		align-items: center;
		justify-content: space-between;
		position: absolute;
		top: 60rpx;
		left: 70rpx;
		width: 570rpx;
	}

	.condition>view:nth-child(1) {
		color: #FFF;
		font-size: 30rpx;
	}

	.condition>view:nth-child(2) {
		color: #FFF;
		font-size: 40rpx;
	}
	.card2 {
		display: flex;
		justify-content: space-between;
		position: absolute;
		top: 220rpx;
		left: 50rpx;
		padding-left: 10rpx;
		padding-top: 30rpx;
		border-top: 1px dashed  #fff;
	}

	.money {
		color: #FFF;
		font-weight: 100rpx;
		margin-top: 20rpx;
		
	}

	.money>text {
		color: #FFF;
		font-size: 120rpx;
	}

	.tiem {
		font-size: 25rpx;
		color: #FFF;
	}

	.arrow {
		font-size: 25rpx;
		width: 150rpx;
		height: 50rpx;
		margin-left: 50rpx;
		color: #FFF;
	}

	.img2 {
		width: 40rpx;
		height: 40rpx;
		position: absolute;
		top: 250rpx;
		right: 60rpx;
	}
</style>